package com.cloud.api.domain.user;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.cloud.core.entity.base.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 管理端登陆用户扩展表
 * </p>
 *
 * @author haohaibo
 * @since 2024-08-21
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("t_user_extend")
@Schema(name = "UserExtend", description = "管理端登陆用户扩展表")
public class UserExtend extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "用户id")
    @TableId("user_id")
    private String userId;

    @Schema(description = "用户名")
    @TableField("user_name")
    private String userName;

    @Schema(description = "姓名")
    @TableField("name")
    private String name;

    @Schema(description = "邮箱")
    @TableField("email")
    private String email;

    @Schema(description = "电话")
    @TableField("mobile")
    private String mobile;

    @Schema(description = "组织机构")
    @TableField("dept_id")
    private String deptId;

    @Schema(description = "启用状态")
    @TableField("enable")
    private Integer enable;
}
